import request from '@/utils/request'

// 查询网格列表列表
export function listRegion(query) {
  return request({
    url: '/Region/region/tree',
    method: 'get',
    params: query
  })
}

// 查询网格列表详细
export function getRegion(pkId) {
  return request({
    url: '/Region/region/' + pkId,
    method: 'get'
  })
}

// 新增网格列表
export function addRegion(data) {
  return request({
    url: '/Region/region',
    method: 'post',
    data: data
  })
}

// 修改网格列表
export function updateRegion(data) {
  return request({
    url: '/Region/region',
    method: 'put',
    data: data
  })
}

// 删除网格列表
export function delRegion(pkId) {
  return request({
    url: '/Region/region/' + pkId,
    method: 'delete'
  })
}

// 查询网格列表详细
export function treeAny() {
  return request({
    url: '/system/city/list/tree/cell',
    method: 'get'
  })
}
